package cn.wl.pchart.service;

import cn.wl.pchart.entity.Message;
import org.apache.ibatis.annotations.Param;

import java.util.List;

// 聊天消息服务
public interface CommunicationService {

    // 获取num条聊天记录
    public List<Message> getMessage(String user1, String user2, String time, Integer num);

    // 存储一条message
    public void saveMessage(String from, String to, String data);

    // 删除指定mid的聊天记录
    public void deleteMessage(String mid);
}
